package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.PermanenciaDto;
import org.cunamas.core.dto.PracticasCrianzaDto;
import org.springframework.jdbc.core.RowMapper;

public class PracticasCrianzaMapper implements RowMapper<PracticasCrianzaDto>{

	public PracticasCrianzaDto mapRow(ResultSet rs, int rowNum) throws SQLException {
		PracticasCrianzaDto dto = new PracticasCrianzaDto();
		dto.setAnio(rs.getInt(1));
		dto.setMes(rs.getInt(2));
		dto.setPeriodo(rs.getString(3));
		dto.setCred(rs.getBigDecimal(4));
		dto.setAseados(rs.getBigDecimal(5));
		dto.setCmuda(rs.getBigDecimal(6));
		dto.setSmuda(rs.getBigDecimal(7));
		dto.setPracticas(rs.getBigDecimal(8));
		return dto;
	}

}
